home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Dialogs / AGSupprt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  2.6 KB  |  115 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AGSupprt.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Owned by:    Yan Arrouye
  7.  
  8.     Copyright:    © 1995 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>      7/8/96    eeh        undo task 10008 (AppleGuide buttons)
  13.                  8/31/95    Yan        Moved to ShareWare
  14.  
  15.     To Do:
  16. */
  17.  
  18.  
  19. #ifndef _AGSUPPORT_
  20. #define _AGSUPPORT_
  21.  
  22. #include <Types.h>
  23.  
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27.  
  28.  
  29. enum
  30. {
  31.     kAppleGuidesList    = 'AGd#',    // List of the guides we want in the help menu
  32.     kAppleGuideInfo        = 'AGd?'    // Dialog specific help information
  33. };
  34.  
  35.  
  36.  
  37. #ifdef _APPLEGUIDE_READY_
  38.  
  39. //-------------------------------------------------------------------------
  40. //    IsAppleGuidePresent
  41. //    
  42. //    Returns true if AppleGuide is there.
  43. //-------------------------------------------------------------------------
  44.  
  45. Boolean IsAppleGuidePresent();
  46.  
  47.  
  48. //-------------------------------------------------------------------------
  49. //    IsAppleGuideInstalled
  50. //    
  51. //    Returns true if AppleGuide is present and a guide was installed.
  52. //-------------------------------------------------------------------------
  53.  
  54. Boolean IsAppleGuideInstalled();
  55.  
  56.  
  57. //-------------------------------------------------------------------------
  58. //    InstallAppleGuide
  59. //    
  60. //    Installs the guide in the help menu and initialize the AppleGuide support.
  61. //    Call at init time
  62. //-------------------------------------------------------------------------
  63.  
  64. void InstallAppleGuide();
  65.  
  66.  
  67.  
  68.  
  69. //-------------------------------------------------------------------------
  70. //    OpenAppleGuide
  71. //    
  72. //    Opens the database at the specified keyword
  73. //-------------------------------------------------------------------------
  74.  
  75. Boolean OpenAppleGuide(StringPtr keyword = NULL);
  76.  
  77.  
  78.  
  79. //-------------------------------------------------------------------------
  80. //    OpenAppleGuideMenuItem
  81. //    
  82. //    Opens the database at for the specified menu item
  83. //-------------------------------------------------------------------------
  84.  
  85. //Boolean OpenAppleGuideMenuItem(short item);
  86.  
  87.  
  88.  
  89. //-------------------------------------------------------------------------
  90. //    CloseAppleGuide
  91. //    
  92. //    Closes the database if it was opened and quits AppleGuide
  93. //-------------------------------------------------------------------------
  94.  
  95. void CloseAppleGuide();
  96.  
  97. //Eric's added these; comment later those that remain
  98. void InitAppleGuideSupport();
  99. void TakedownAppleGuideSupport();
  100. void DialogSetUpAppleGuide( DialogPtr dlg, short item );
  101. void DialogTakedownAppleGuide();
  102.  
  103. #else
  104. #define OpenAppleGuide();
  105.  
  106. #define InitAppleGuideSupport()
  107. #define TakedownAppleGuideSupport()
  108. #define DialogSetUpAppleGuide( dlg, item )
  109. #define DialogTakedownAppleGuide()
  110.  
  111. #endif /* _APPLEGUIDE_READY_ */
  112.  
  113.  
  114. #endif
  115.